<include file="Public:header" />
<!-- main content start-->
<div class="main-content" >

    <!-- header section start-->
    <div class="header-section">
        <!--toggle button start-->
        <a class="toggle-btn"><i class="fa fa-bars"></i></a>
        <!--toggle button end-->
        <!--notification menu start -->
        <div class="menu-right">
            <ul class="notification-menu">
                <li>
                    <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        <img src="__IMG__/photos/user-avatar.png" alt="" />
                        {$shopname}
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                        <li><a href="{:U('Rootadmin/Login/changePwd')}"><i class="fa fa-cog"></i>  修改密码</a></li>
                        <li><a href="{:U('Rootadmin/Login/logout')}"><i class="fa fa-cog"></i>  退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>
        <!--notification menu end -->
    </div>
    <!-- header section end-->
    <!-- page heading start-->
    <div class="page-heading">
        <h3>
            充值管理
        </h3>
        <ul class="breadcrumb">
            <li>
                <a href="#">首页</a>
            </li>
            <li> 充值管理 </li>
            <li class="active"> 充值记录 </li>
        </ul>
    </div>
    <!-- page heading end-->

    <!--body wrapper start-->
    <div class="wrapper">
        <section class="panel">
            <div class="panel-body">
                <section id="unseen">
                    <table class="table table-bordered table-striped table-condensed">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>商户</th>
                            <th>电话</th>
                            <th>支付类型</th>
                            <th>支付金额</th>
                            <th>状态</th>
                            <th>支付时间</th>
                            <th>备注</th>
                            <th>添加时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="info" id="vo">
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.linker}</td>
                                <td>{$vo.phone}</td>
                                <td>
                                    <eq name="vo.pay_type" value="1">支付宝</eq>
                                    <eq name="vo.pay_type" value="2">微信</eq>
                                </td>
                                <td>{$vo.money}</td>
                                <td>
                                    <eq name="vo.status" value="0"><span style="color:orange;">未支付</span></eq>
                                    <eq name="vo.status" value="1"><span style="color:limegreen;">成功</span></eq>
                                    <eq name="vo.status" value="2"><span style="color:red;">失败</span></eq>
                                </td>
                                <td>
                                    <empty name="vo.paytime">
                                        -
                                        <else/>
                                        {$vo.paytime|date="Y-m-d H:i:s",###}
                                    </empty>
                                </td>
                                <td>{$vo.remark}</td>
                                <td>
                                    <empty name="vo.addtime">
                                        -
                                        <else/>
                                        {$vo.addtime|date="Y-m-d H:i:s",###}
                                    </empty>
                                </td>

                            </tr>
                        </volist>
                        </tbody>
                    </table>


                    <div class="row">
                        <div class="col-lg-12">
                            <div class="dataTables_paginate paging_bootstrap pagination">
                                {$pages}
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </section>
    </div>
    <!--body wrapper end-->
    <!-- main content end-->
    <script>
        function del(id){
            if(confirm("确认删除")){
                var url="{:U('Rootadmin/system/delete')}";
                $.post(url,{id:id},function(res){
                    if(res.code==200){
                        toast(res.msg,true);
                        location.reload()
                    }else{
                        toast(res.msg,false);
                    }
                });
                return false;
            }else{
                return false;
            }
        }
    </script>
    <include file="Public:footer" />